<%@ include file="/WEB-INF/view/common/head.jsp"%>

<link rel="stylesheet" href="${basepath}/assets/xenon/css/bootstrap-3.3.0.css">
<link href="${basepath}/assets/kendoui/style/kendo.common.min.css" rel="stylesheet" type="text/css"/>
<link href="${basepath}/assets/kendoui/style/kendo.bootstrap.min.css" rel="stylesheet" type="text/css"/>

<link href="${basepath}/assets/fullcalendar/lib/cupertino/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<link href="${basepath}/assets/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>

<!--kindedit-->
<link href="${basepath}/assets/kindedit/themes/default/default.css" rel="stylesheet" type="text/css"/>
<link href="${basepath}/assets/kindedit/plugins/code/prettify.css" rel="stylesheet" type="text/css"/>

<script src="${basepath}/assets/fullcalendar/lib/moment.min.js" type="text/javascript"></script>

<script src="${basepath}/assets/kendoui/js/angular.min.js" type="text/javascript"></script>

<script src="http://cdn.dibabo.cn/Scripts/kendo/2015.2.624/kendo.all.min.js" type="text/javascript"></script>
<!--<script src="${basepath}/assets/kendoui/js/kendo.all.min.js" type="text/javascript"></script>-->
<!--<script src="${basepath}/assets/xenon/js/bootstrap.min.js"></script>-->

<script src="${basepath}/assets/kendoui/js/kendo.messages.zh-CN.min.js" type="text/javascript"></script>

<script src="${basepath}/assets/fullcalendar/lib/moment.min.js" type="text/javascript"></script>
<script src="${basepath}/assets/fullcalendar/fullcalendar.min.js" type="text/javascript"></script>

<!--kindedit-->
<script src="${basepath}/assets/kindedit/kindeditor-all-min.js" type="text/javascript"></script>
<script src="${basepath}/assets/kindedit/lang/zh_CN.js" type="text/javascript"></script>
<script src="${basepath}/assets/kindedit/plugins/code/prettify.js" type="text/javascript"></script>

<!--fancybox-->
<link rel="stylesheet" type="text/css" href="${basepath}/assets/fancybox/css/jquery.fancybox.css" />
<script type="text/javascript" src="${basepath}/assets/fancybox/js/jquery.fancybox.pack.js"></script>

<!--artdialog
<link rel="stylesheet" type="text/css" href="${basepath}/assets/art/css/ui-dialog.css" />
<script type="text/javascript" src="${basepath}/assets/art/js/dialog-plus-min.js"></script>-->

<link rel="stylesheet" href="${basepath}/assets/xenon/css/xenon-components.css">
<script src="${basepath}/assets/xenon/js/toastr/toastr.min.js"></script>

<!-- layer -->
<script type="text/javascript" src="${basepath}/assets/layer/layer.js"></script>
<script type="text/javascript" src="${basepath}/assets/laydate/laydate.js"></script>
<script type="text/javascript" src="${basepath}/assets/layer/extend/layer.ext.js"></script>


<script>

var toastrOptsTop = {
	"closeButton": true,
	"debug": false,
	"positionClass": "toast-top-full-width",
	"toastClass": "black",
	"onclick": null,
	"showDuration": "100",
	"hideDuration": "1000",
	"timeOut": "3000",
	"extendedTimeOut": "1000",
	"showEasing": "swing",
	"hideEasing": "linear",
	"showMethod": "fadeIn",
	"hideMethod": "fadeOut"
};

var toastrOptsBottom = {
	"closeButton": true,
	"debug": false,
	"positionClass": "toast-bottom-full-width",
	"toastClass": "black",
	"onclick": null,
	"showDuration": "100",
	"hideDuration": "1000",
	"timeOut": "3000",
	"extendedTimeOut": "1000",
	"showEasing": "swing",
	"hideEasing": "linear",
	"showMethod": "fadeIn",
	"hideMethod": "fadeOut"
};

var toastrOptsLeft = {
	"closeButton": true,
	"debug": false,
	"positionClass": "toast-left-full-width",
	"toastClass": "black",
	"onclick": null,
	"showDuration": "100",
	"hideDuration": "1000",
	"timeOut": "3000",
	"extendedTimeOut": "1000",
	"showEasing": "swing",
	"hideEasing": "linear",
	"showMethod": "fadeIn",
	"hideMethod": "fadeOut"
};

var toastrOptsRight = {
	"closeButton": true,
	"debug": false,
	"positionClass": "toast-right-full-width",
	"toastClass": "black",
	"onclick": null,
	"showDuration": "100",
	"hideDuration": "1000",
	"timeOut": "3000",
	"extendedTimeOut": "1000",
	"showEasing": "swing",
	"hideEasing": "linear",
	"showMethod": "fadeIn",
	"hideMethod": "fadeOut"
};

function JsonCode(formObj){
    var paramObject = new Object();  
    var elementsObj=formObj.elements;  
    var obj;  
    for(var i=0; i<elementsObj.length;i+=1){  
        obj=elementsObj[i];  
        if(obj.name!=undefined&&obj.name!=""){  
            paramObject[obj.name] = obj.value;  
        }  
    }  
    return JSON.stringify(paramObject);  
};

Date.prototype.format = function(format){ 
	var o = { 
		"M+" : this.getMonth()+1, //month 
		"d+" : this.getDate(), //day 
		"h+" : this.getHours(), //hour 
		"m+" : this.getMinutes(), //minute 
		"s+" : this.getSeconds(), //second 
		"q+" : Math.floor((this.getMonth()+3)/3), //quarter 
		"S" : this.getMilliseconds() //millisecond 
	} 
	
	if(/(y+)/.test(format)) { 
		format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); 
	}
	
	for(var k in o) { 
		if(new RegExp("("+ k +")").test(format)) { 
			format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length)); 
		} 
	} 
	return format; 
} 
</script>
<style>
body{font-size:12px}
</style>